
#ifndef CONFIG_H
#define CONFIG_H

#include <BColor>
#include <BObject>
#include <BXmlNode>
#include <BString>

using namespace BWE;

class Config : public BObject
{
public:
	Config();
	~Config();

	bool load();
	bool save();

	bool isDirty() const;

	void setLanguage(const BString& language);
	const BString& language() const;

private:
	mutable bool	_dirty;

	BString			_language;

	bool			_gridLineVisual;
	BReal			_gridLineSize;
	int				_gridLineSegments;
	BColor			_gridLineColor;

	bool			_targetSpaceVisual;
	BColor			_targetSpaceColor;
	bool			_nodeSpaceVisual;
	BColor			_nodeSpaceColor;
	bool			_shapeBoxVisual;
	BColor			_shapeBoxColor;

	bool			_adsorbPoint;
	bool			_adsorbMiddle;
	bool			_adsorbCenter;
};

#endif
